package com.twang.stock.controller.risk;

import com.twang.stock.service.TodayReDuOnehourService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
@RequestMapping(value = "/")
@Slf4j
public class RiskController {

    @Autowired
    private TodayReDuOnehourService todayReDuOnehourService;

    @RequestMapping(value = "")
    public ModelAndView risk(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("index");
        return modelAndView;
    }

    @RequestMapping(value = "/index_v3")
    public ModelAndView index_v1(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("index_v3");
        return modelAndView;
    }

}
